package com.circulardependence.service.impl;
import com.circulardependence.entity.Myaddress;
import com.circulardependence.mapper.MyaddressMapper;
import com.circulardependence.service.MyaddressService;
import com.circulardependence.service.PersonalService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by IntelliJ IDEA2021.3
 *
 * @Author: Tenghw
 * @Date: 2022/08/27  18:35
 * @Description:
 */
@Slf4j
@Service("myaddressService")
@SuppressWarnings("all")
@Transactional(rollbackFor = Exception.class)
public class MyaddressServiceImpl implements MyaddressService {
    @Autowired
    MyaddressMapper myaddressMapper;

    @Autowired
    PersonalService personalService;

    @Override
    public Myaddress getOne(Integer id) {
        return myaddressMapper.getMyaddressById(id);
    }
}
